import * as echarts from 'echarts/core';
// 图表
import { LineChart } from 'echarts/charts';
// 组件
import { TooltipComponent, GridComponent } from 'echarts/components';
// 渲染器
import { SVGRenderer, CanvasRenderer } from 'echarts/renderers';

// 注册 echarts 组件
echarts.use([TooltipComponent, GridComponent, SVGRenderer, CanvasRenderer, LineChart]);

export { echarts };
